<template>
  <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
    <el-form-item prop="proNo">
      <el-input v-model="queryParams.proNo" placeholder="物品编号" clearable />
    </el-form-item>
    <el-form-item prop="disposalStat">
      <el-select v-model="queryParams.disposalStat" placeholder="处置方式" clearable size="small">
        <el-option
          v-for="dict in dict.type.deal_type"
          :key="dict.value"
          :label="dict.label"
          :value="dict.value"
        />
      </el-select>
    </el-form-item>
    <el-form-item prop="region">
    <el-select v-model="queryParams.region" placeholder="区域" clearable size="small">
      <el-option
        v-for="dict in dict.type.wms_put_task_area"
        v-if="dict.value !=='QB'"
        :key="dict.value"
        :label="dict.label"
        :value="dict.value"
      />
    </el-select>
    </el-form-item>
    <el-form-item>
      <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
      <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
    </el-form-item>
  </el-form>
</template>

<script>

export default {
  dicts: ['deal_type','wms_put_task_area'],
  props: {
    queryParams: {
      type: Object,
      required: true
    }
  },
  data() {
    return {
      showSearch: true
    }
  },
  methods: {
    getList() {
      this.$emit('getList')
    },
    handleQuery() {
      this.queryParams.pageNum = 1
      this.getList()
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm('queryForm')
      this.handleQuery()
    },
    handleExport() {

    },
  }
}
</script>

<style scoped>

</style>
